<template>
  <div id="index">
      <v-header></v-header>
        <keep-alive>
            <router-view />
        </keep-alive>
  </div>
</template>

<script>
import header from 'common/header';
import {swiperSlide} from 'vue-awesome-swiper'
import slider from 'common/slider.vue'
import Loading from 'common/loading'
import Scroll from 'common/scroll';
 import {mapMutations} from 'vuex'
export default {
  name: 'index',
  data () {
    return {
       
    }
  },
  watch:{
    $route(to,from){
      if(to.path=="/btgame"||to.path=="/discount"){
          this.SET_PATH(this.$route.path)
      }
    }
  },
  methods:{
      ...mapMutations(['SET_PATH'])
  },
  mounted(){
    if(this.$route.path=="/btgame"||this.$route.path=="/discount"){
        this.SET_PATH(this.$route.path)
    }
  },
  components:{
    'v-header':header,
  }
}
</script>


<style scoped lang="scss">

</style>
